/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package gui.event.benhan;

import gui.benhan.BAChiTiet_Dialog;
import gui.benhan.BASuaThongTin_Dialog;
import java.awt.print.PrinterException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import javax.swing.JTable;

/**
 *
 * @author Admin
 */
public class BATimKiemDlg_evt {
    
    public static final void btnTimKiemActionPerformed(){
        JOptionPane.showMessageDialog(null, "Found");
    }
    
    public static final void btnChiTietActionPerformed(){
        BAChiTiet_Dialog baChiTietDlg = new BAChiTiet_Dialog(null, true);
        baChiTietDlg.setLocationRelativeTo(null);
        baChiTietDlg.setVisible(true);
    }
    
    public static final void btnInActionPerformed(JTable tbl){
         try {
            tbl.print();
        } catch (PrinterException ex) {
            Logger.getLogger(BATimKiemDlg_evt.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    public static final void btnCloseActionPerformed(JDialog dlg){
        dlg.dispose();
        
    }
    
     public static final void btnSuaActionPerformed(){
//          BASuaThongTin_Dialog baSuaDlg = new BASuaThongTin_Dialog(null, true);
//         baSuaDlg.setLocationRelativeTo(null);
//         baSuaDlg.setVisible(true);;
     }
    
    
}
